package top.wanzc.java.basic.jdk9.to17.feature;

interface PrivateFuncInterface {
	
	private void privateMethod() {
		System.out.println("private");
	}
	
	default void defaultMethod1() {
		privateMethod();
	}
	
	default void defaultMethod2() {
		privateMethod();
	}
	static void staticMethod1() {
		System.out.println("static method");
	}
}

public class PrivateFuncInInterface {
	
	public static void main(String[] args) {
		PrivateFuncInterface inter = new PrivateFuncInterface() {
			
		};
		inter.defaultMethod1();
		inter.defaultMethod2();
		PrivateFuncInterface.staticMethod1();
	}

}
